﻿@{
    ViewBag.Title = "Reporte";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<script>
    $(document).ready(function () {
        $("#btnReporte").bind("click", function () {
            var origen = $("#Origen").val();

            $.getJSON("/Guia/ObtenerReporte",
                {
                    origen: origen
                },
                function (datos) {
                    $("#spReporte").html(datos);
                });
        })
    });
</script>

<h2>Reporte</h2>
@using (Html.BeginForm()) {
<select id="Origen">
    <option value="001">PERU</option>
    <option value="002">JAPON</option>
</select>
<input type="button" id="btnReporte" value="Ver Reporte"/>
<br />
}
<span id="spReporte"></span>
@*@Html.Raw(HttpUtility.HtmlDecode(@ViewBag.lista.ToString()))*@